package com.day0916;

public class Text {
    public static void main(String[] args) {
        //创建对象，调用对象
        //Dog//类，类型  数据类型；
        //Dog 自定义类型  == 引用类型
        //创对象 dog对象
        Dog dog = new Dog();
        //. 操作符
        dog.name = "旺财";
        dog.age = 2;
        dog.color = "黄色";
        dog.sex = '女';
        dog.strain = "柯基";
        dog.cry();
        dog.run();
        dog.show();

        Car car = new Car();
        car.brand = "特斯拉";
        car.model = "Mode 3";
        car.color = "蓝色";
        car.price = 30;
        car.show();
        car.go();
        car.back();
    }
}
